package com.atguigu.product.products.service;

import com.atguigu.product.products.vo.respVo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.product.products.entity.PmsCategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author qhw
 * @email qhw@gmail.com
 * @date 2021-08-03 19:57:10
 */
public interface PmsCategoryService extends IService<PmsCategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<PmsCategoryEntity> queryByTree();

    void deleteAllPitch(List<Long> longs);

    Long[] queryRec(Long catelogId);

    void updateDetail(PmsCategoryEntity pmsCategory);

    Map<String, List<Catelog2Vo>> indexCatelog();

    Map<String, List<Catelog2Vo>> indexCatelogRedis();

    /**
     * 原生方式解决分布式缓存
     * @return
     */
    Map<String, List<Catelog2Vo>> indexCatelogRedis1();

    /**
     * redisson方式解决分布式缓存问题
     * @return
     */
    Map<String, List<Catelog2Vo>> indexCatelogRedis2();
}

